package UtilityClass;

import java.util.HashSet;
import java.util.Random;

public class DoubleBall {
    public static void main(String[] args) {
        Random random = new Random();
        HashSet list = new HashSet();
        while (list.size()<6){
            int nums = random.nextInt(33)+1;
            list.add(nums);
        }
        System.out.println("6个红");
        for (Object a:list){
            System.out.print(a+",");
        }
        System.out.println();
        System.out.println("一个绿");
        int greenball = random.nextInt(16)+1;
        System.out.println(greenball);
    }
}

